			
            <div id="title-bar">
                <div id="element-count">
                    <div id="info-element">
                        <div class="number"><?php echo $countpack;?></div>
                        <span>gói kênh</span>
                    </div>
                    <div id="img-element">
                    	<div class="nav-icons ico-channel"></div>
                    </div>
                </div>
                <h2 id="title-page">Quản lý gói kênh <a class="label" href="<?php echo base_url('administrator/packchannel/add') ?>">+ thêm gói kênh</a></h2>
            </div>
            <div class="row-fluid">
            	<?php if(isset($textkeysearch)):?>
                
                <h4>
                	CÓ <?php echo ($listservicepack)?count($listservicepack):0;?> KẾT QUẢ ĐƯỢC TÌM KIẾM TỪ "<em><?php echo $textkeysearch?></em>"
                    <a href="" onClick="parent.location='';return false;"><i class="icon-remove-sign"></i></a>
                </h4>
                <?php endif;?>
                
            </div>
            <div class="row-fluid">
            	<div class="span8">                   
                </div>
            	<div class="span4">
                	<div class="pull-right">
                        <?php echo form_open('administrator/packchannel/manager', 'id="formSearch" class="form-inline"') ?>
                        	<div class="input-append">
                            	<input type="text" value="<?php echo set_value('keysearch')?>" name="keysearch" id="keysearch" placeholder="Nhập từ khóa" class="input-medium" autocomplete="off" />
                                <button class="btn">
                                	<i class="icon-search"></i>
                                </button>
                            </div>
                        <?php echo form_close() ?>
                    </div>
                </div>
            </div>
            <div class="clearfix"></div>
 
                <table class="table table-striped table-bordered genaral-tables" width="100%">
                	<thead>
                    	<tr>
                        	<th width="3%">#</th>
                            <th width="44%">Tên gói kênh</th>
                            <th width="8%">Thời hạn</th>
                            <th width="14%">Giá cước</th>
                            <th width="10%">Hình ảnh</th>
                            <th width="12%">Trạng thái</th>
                            <th width="9%">Hành động</th>
                        </tr>
                    </thead>
                    <tbody>
                    	<?php if($listservicepack): foreach($listservicepack as $row){?>
                        
                        <tr rel="<?php echo $row->SpId ?>" id="table_row_<?php echo $row->SpId?>">
                            <td class="text-center stt"><?php echo $row->stt ?></td>
                            <td>
                            	<strong><?php echo $row->NameService_vn ?></strong><br/>
                                <em><small><?php echo $row->Sumary_vn ?></small></em>
                            </td>
                            <td>
                            	<?php foreach($row->Detail as $row1){ echo "<p>+ ".$row1->Duration." tháng</p>";} ?>
                            
                            </td>
                            <td>
                            	<?php foreach($row->Detail as $row2){ echo "<p>+ ".number_format($row2->Price,0,',','.')." VNĐ / tháng</p>";} ?>
                            </td>
                            <td class="text-center image"><img src="<?php echo base_url($row->Image); ?>" alt=""/></td>
                            <td class="text-center status"><small><?php if($row->Status==1){echo "<span class='label label-success'>Hoạt động</span>";}elseif($row->Status==2){echo "<span class='label'>Không hoạt động</span>";} ?></small></td>
                            <td class="table-col-action text-center">
                                <a class="btn-change-status" rel="tooltip" href="" title="Đổi trạng thái" status="<?php echo $row->Status?>"><i class="<?php echo ($row->Status==1)?'icon-ok-sign':(($row->Status==2)?'icon-remove-sign':'');?>"></i></a>
                                <a rel="tooltip" href="<?php echo base_url('administrator/packchannel/modify?spid='.$row->SpId) ?>" title="Sửa mục">
                                	<i class="icon-pencil"></i>
                                </a>
                                <a class="btn-delete" rel="tooltip" href="" title="Xóa mục" >
                                	<i class="icon-remove"></i>
                                </a>
                            </td>
                        </tr>
                       
                        <?php } else: ?>
                        
                        <tr>
                            <td class="text-center" colspan="7">
                                Không có mục nào được tìm thấy
                            </td>
                        </tr>
                       	<?php endif;?>
                        
                        <tr>
                            <td class="tableFooter" colspan="7">
                                <div class="pull-left"></div>
                                <div class="pagination pull-right">
                                    <?php echo $paging ?>
                                    
                                </div>
                            </td>
                        </tr>
                    </tbody>
       			</table>
          
            